# coding=utf-8
from socket import *

client_socket = socket(AF_INET, SOCK_STREAM)  # 创建TCP类型的套接字
client_socket.connect(("127.0.0.1", 8899))
client_socket.send("hello".encode('gbk'))
client_socket.close()
